package method;

public class Consumer {

    public static void main(String[] args) {
        Car car1 = new WulinCarFactory().getCar();
        Car car2 = new AudiCarFactory().getCar();
        Car car3 = new DaZhongCarFactory().getCar();
        car1.name();
        car2.name();
        car3.name();
    }
}
